package com.example.nacosconsumerpaymemt7777.service;

import com.example.common.Bean.Result;
import com.example.common.entity.Student;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhaoren
 * @version 1.0
 * @description 统一异常处理类
 * @date 2020/9/6 10:48
 **/

@Component
public class OpenFeinExceptionHandler implements OpenFeinService {

    @Override
    public Result<Object> findAll() {
        return Result.builder().build()
                .setData("查询所有学生出错!")
                .setStatus(HttpStatus.OK.value());
    }
}
